package edu.ynu.util;
import java.util.Calendar;


public class Identifier {
	public static String generate(){
		//Date date = new Date();
		Calendar c=Calendar.getInstance();
		String year = Integer.toString(c.get(Calendar.YEAR)) ;
		String month = Integer.toString(c.get(Calendar.MONTH)+1);
		String day = Integer.toString(c.get(Calendar.DATE));
		String hour = Integer.toString(c.get(Calendar.HOUR_OF_DAY));
		String minute = Integer.toString(c.get(Calendar.MINUTE));
		String second = Integer.toString(c.get(Calendar.SECOND));
		String id = year+month+day+hour+minute+second;
		return id;
	}
	public static void main(String [] args){
		System.out.println(Identifier.generate());
	}
}
